package com.zyz.common.exception;

import com.zyz.base.enums.ResponseCodeEnum;

/**
 * @author wangjinliang
 */
public class InvalidParamException extends ErrorCodeException {
    public InvalidParamException() {
        super(ResponseCodeEnum.INVALID_PARAM);
    }

    public InvalidParamException(String message) {
        super(ResponseCodeEnum.INVALID_PARAM, message);
    }

    public InvalidParamException(String field, String message) {
        super(ResponseCodeEnum.INVALID_PARAM, String.format("%s:%s", field, message));
    }
}